package com.ruoyi.school.mapper;

import java.util.List;
import com.ruoyi.school.domain.SchoolNews;

/**
 * 消息维护Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-15
 */
public interface SchoolNewsMapper 
{
    /**
     * 查询消息维护
     * 
     * @param id 消息维护主键
     * @return 消息维护
     */
    public SchoolNews selectSchoolNewsById(Long id);

    /**
     * 查询消息维护列表
     * 
     * @param schoolNews 消息维护
     * @return 消息维护集合
     */
    public List<SchoolNews> selectSchoolNewsList(SchoolNews schoolNews);

    /**
     * 新增消息维护
     * 
     * @param schoolNews 消息维护
     * @return 结果
     */
    public int insertSchoolNews(SchoolNews schoolNews);

    /**
     * 修改消息维护
     * 
     * @param schoolNews 消息维护
     * @return 结果
     */
    public int updateSchoolNews(SchoolNews schoolNews);

    /**
     * 删除消息维护
     * 
     * @param id 消息维护主键
     * @return 结果
     */
    public int deleteSchoolNewsById(Long id);

    /**
     * 批量删除消息维护
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSchoolNewsByIds(Long[] ids);

    List<SchoolNews> selectSchoolNewsListById(Long userId);
}
